home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Development Tools & Languages / Dylan Related / Mindy / Mindy 1.2 - portable sources / libraries / format / library.dylan < prev    next >
Encoding:
Text File  |  1995-03-15  |  1.9 KB  |  62 lines  |  [TEXT/ttxt]

  1. module: Dylan-User
  2. author: chiles@cs.cmu.edu
  3. synopsis: This file defines the Print library and modules.
  4. copyright: See below.
  5. rcs-header: $Header: library.dylan,v 1.3 94/11/16 18:10:38 chiles Exp $
  6.  
  7. //======================================================================
  8. //
  9. // Copyright (c) 1994  Carnegie Mellon University
  10. // All rights reserved.
  11. // 
  12. // Use and copying of this software and preparation of derivative
  13. // works based on this software are permitted, including commercial
  14. // use, provided that the following conditions are observed:
  15. // 
  16. // 1. This copyright notice must be retained in full on any copies
  17. //    and on appropriate parts of any derivative works.
  18. // 2. Documentation (paper or online) accompanying any system that
  19. //    incorporates this software, or any part of it, must acknowledge
  20. //    the contribution of the Gwydion Project at Carnegie Mellon
  21. //    University.
  22. // 
  23. // This software is made available "as is".  Neither the authors nor
  24. // Carnegie Mellon University make any warranty about the software,
  25. // its performance, or its conformity to any specification.
  26. // 
  27. // Bug reports, questions, comments, and suggestions should be sent by
  28. // E-mail to the Internet address "gwydion-bugs@cs.cmu.edu".
  29. //
  30. //======================================================================
  31. //
  32.  
  33.  
  34. ///
  35. /// These definitions go into the Dylan-User module because this is how we
  36. /// jumpstart a library.
  37. ///
  38.  
  39. define library format
  40.   use dylan;
  41.   use streams;
  42.   use print,
  43.     export: {print};
  44.   export format;
  45. end library;
  46.  
  47. define module format
  48.   use dylan;
  49.   use extensions,
  50.     import: {<boolean>, type-or, false-or, <fixed-integer>, report-condition};
  51.   use streams,
  52.     import: {<stream>, write, lock-stream, unlock-stream,
  53.          <byte-string-output-stream>, string-output-stream-string,
  54.          <byte-character>, <byte>};
  55.   use print,
  56.     import: {print};
  57.   export
  58.     format,
  59.     print-message,
  60.     format-to-string;
  61. end module;
  62.